﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace Crawler.Configuration
{
    public class AuthDataElement : ConfigurationElement 
    {
        [ConfigurationProperty("key", IsRequired = false, IsKey = true, DefaultValue = 0)]
        public int Key
        {
            get { return (int)this["key"]; }
            set { this["key"] = value; }
        }

        [ConfigurationProperty("login", IsRequired = true)]
        public string Email
        {
            get { return (string)this["login"]; }
            set { this["login"] = value; }
        }
        
        [ConfigurationProperty("pwd", IsRequired = true)]
        public string Pwd
        {
            get { return (string)this["pwd"]; }
            set { this["pwd"] = value; }
        }
    }

   
}
